# Tanım: Ağ Kimlik Doğrulama İletişim Kuralı
# URL: http://web.mit.edu/kerberos
# Paketçi: milisarge
# Gerekler: openldap e2fsprogs
# Grup: güvenlik ağ

isim=krb5
surum=1.14
devir=1
kaynak=(http://web.mit.edu/kerberos/dist/$isim/$surum/$isim-$surum.tar.gz \
        $isim-config_LDFLAGS.patch)

derle() {
	cd $isim-$surum/src/build-tools
	patch -p1 -i $SRC/$isim-config_LDFLAGS.patch

	cd $SRC/$isim-$surum/src
        sed -e '/KRB5ROOT=/ s/\/local//' -i util/ac_check_krb5.m4

	export CFLAGS="${CFLAGS/-Os/-O2} -I/usr/include/et"

	./configure --prefix=/usr \
                    --localstatedir=/var \
                    --enable-shared \
                    --disable-rpath \
                    --without-tcl \
                    --with-ldap \
                    --with-system-et \
                    --with-system-ss \
                    --without-system-verto

	make
    	make DESTDIR=$PKG install
	rm -rf $PKG/usr/share $PKG/usr/man/cat* $PKG/usr/man5/.*

	# comment this if you want kerberized versions of ftp and telnet
	rm -rf $PKG/usr/bin/{ftp,telnet} $PKG/usr/man/man1/{ftp,telnet}.1
}
